  <div nz-row [nzGutter]="8">
    <div nz-col nzSpan="20" style="overflow: scroll">
      <nz-card class="card-height" [nzBordered]="null" nzSize="small" *ngIf="selectedTab === 0">
        <h3 style="font-weight: 600">提现手续费配置</h3>
        <div nz-row nzGutter="8">
          <div nz-col nzSpan="24" se-container [labelWidth]="125" [se-container]="1">
            <se label="个人提现手续费" style="margin:15px 0 0 0">
              <div>
                按照提现金额收取
                <nz-input-number [(ngModel)]="personServe" [nzMin]="0" [nzMax]="100" [nzPrecision]="2" [nzStep]="0.01"></nz-input-number>
                <span> %手续费 </span>
              </div>
            </se>
            <se label="企业提现手续费" style="margin:15px 0 0 0;">
              <div>
                按照提现金额收取
                <nz-input-number
                  [(ngModel)]="enterpriseServe"
                  [nzMin]="0"
                  [nzMax]="100"
                  [nzPrecision]="2"
                  [nzStep]="0.01"
                ></nz-input-number>
                <span> %手续费 </span>
              </div>
            </se>
          </div>
        </div>
        <h3 style="font-weight: 600;margin:15px 0 0 0;" class="mb-md">合伙人提现配置</h3>
        <div nz-row nzGutter="8" class="audit">
          <div nz-col nzSpan="24" se-container>
            <se label="提现审核"  style="margin:15px 0 0 0;">
              <nz-radio-group [(ngModel)]="auditValue">
                <label nz-radio [nzValue]="false" class="mt-sm">关闭</label>
                <label nz-radio [nzValue]="true" class="mt-sm">开启</label>
              </nz-radio-group>
            </se>
            <se label="审核时间"  style="margin:15px 0 0 0;">
              <div se-container [se-container]="1" style="margin-left: 0px">
                <nz-radio-group style="display: block" [(ngModel)]="auditTime" (ngModelChange)="changeAuto(auditTime)">
                  <label nz-radio [nzValue]="1" class="mt-sm">全天</label>
                  <label nz-radio [nzValue]="2" class="mt-sm">自定义</label>
                </nz-radio-group>
              </div>
            </se>
            <div style="margin-left: 200px">
              <ng-container *ngTemplateOutlet="auditTimes"> </ng-container>
            </div>
          </div>
        </div>
        <h3 style="font-weight: 600;margin:15px 0 0 0;" class="mb-md">客户定义配置</h3>
        <div nz-row nzGutter="8">
            <div nz-col nzSpan="24">
                <span>客户</span>
                <nz-input-number style="margin: 0 10px; "  [(ngModel)]="silenceClient" [nzMin]="0" [nzMax]="3000" [nzPrecision]="2" [nzStep]="0.1"></nz-input-number>
                <span>天内没有交易订单的视为“沉默客户”</span>
            </div>
            <div nz-col nzSpan="24" style="margin-top: 10px;">
                <span>客户</span>
                <nz-input-number  style="margin: 0 10px; "   [(ngModel)]="loseClient" [nzMin]="0" [nzMax]="3000" [nzPrecision]="2" [nzStep]="0.1"></nz-input-number>
                <span>天内没有交易订单的视为“流失客户”</span>
            </div>
            <div nz-col nzSpan="24">
                <span style="color: #797979; font-size: 14px;">说明：交易订单指从司机已接单开始的订单。</span>
            </div>
        </div>
      </nz-card>
      <div class="mb-md save-btn">
        <button class="ml-lg" nz-button nzSize="large" nzType="primary" (click)="save()">保存</button>
      </div>
    </div>
  </div>

<ng-template #auditTimes let-data="data" let-title="title">
  <div *ngIf="auditTimeStatus" >
      <nz-radio-group [(ngModel)]="everyDay" (ngModelChange)="everyDayChange(everyDay)" style="display: block">
        <label nz-radio [nzValue]="1" class="mt-sm"
          >每天<span *ngIf="TimeStatus" style="margin-left: 30px; color: #0200ff; cursor: pointer" (click)="addEvery()">添加时间段</span></label
        >
      </nz-radio-group>
      <br />
      <div *ngIf="TimeStatus">
        <div *ngFor="let item of everyDayData; let i = index">
        <div style="margin-top: 15px;">
            <input type="time" [(ngModel)]="item.startTime" placeHolder="开始时间" style="margin-left: 23px" />
            <label class="ml-sm mr-sm"> --</label>
            <input type="time" [(ngModel)]="item.endTime" placeHolder="结束时间" style="margin-left: 0" class="mr-xl" />
        
            <label class="ml-sm mr-sm" style=" color: #0200ff; cursor: pointer" *ngIf="i !== 0" (click)="delEvery(i)">删除</label>
        </div>
        </div>
      </div>
    <div >
      <nz-radio-group [(ngModel)]="MonthDay" (ngModelChange)="MonthDayChange(MonthDay)"  style="display: block">
        <label nz-radio [nzValue]="2" class="mt-sm"
          >每周<span  *ngIf="!TimeStatus" style="margin-left: 30px; color: #0200ff; cursor: pointer" (click)="addMonth()">添加星期</span></label
        >
      </nz-radio-group>
      <div *ngIf="!TimeStatus">
        <div *ngFor="let item of MonthDayData; let i = index">
            <nz-checkbox-group style="margin-top: 15px;" [(ngModel)]="item.month" (ngModelChange)="changeMonth(item.month)"></nz-checkbox-group>
            <br />
            <div *ngFor="let ite of item.Times; let ii = index">
                <div style="margin-top: 15px;">
             <input type="time" [(ngModel)]="ite.startTime" placeHolder="开始时间" style="margin-left: 23px" />
             <label class="ml-sm mr-sm"> --</label>
             <input type="time" [(ngModel)]="ite.endTime" placeHolder="结束时间" style="margin-left: 0" class="mr-xl" />
             <label class="ml-sm mr-sm" style=" color: #0200ff; cursor: pointer" (click)="addMonthEvery(i)">添加时间段</label>
             <label *ngIf="ii !== 0" class="ml-sm mr-sm" style=" color: #0200ff; cursor: pointer" (click)="delMonth(i,ii)">删除</label>
            </div>
            </div>
        </div>
      </div>
    </div>
  </div>
</ng-template>
